package com.pms.mapper;

import com.pms.pojo.DailyTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface DailyTaskMapper {
    List<DailyTask> selectByUserId(@Param("userId") Long userId);

    DailyTask selectById(@Param("id") Long id);

    int insert(DailyTask task);

    int update(DailyTask task);

    int updateStatus(@Param("id") Long id, @Param("status") String status);

    int deleteById(@Param("id") Long id);
}